<form action='' method='POST' id='addsetform'>
    <table>
    <tr>
	{% if sets %}
	<td class='addset_setlist'>
	    <div>
		{% for set in sets %}
		<a class='addset_setlist_link' href='{{baseURL}}/ajax/renderSet.html?setKey={{ set.key }}'>{{ set.title }}</a>
		{% endfor %}
	    </div>
	</td>
	{% endif %}
	<td>
	    <div>
		<table id='addsetform_table'>
		    <tr><td>Title:</td><td><input type=text name=title id=title class='inputfield'></td></tr>
		    <tr>
			<td>Visibility:</td>
			<td>
			    <select name=visibility id='visibility'>
				<option value='private'>private</option>
				<option value='public'>public</option>
			    </select>
			</td>
		    </tr>
		    {% if askForEmail %}
		    <tr>
			<td>Email:</td>
			<td>
			    <p>If you want to share this set other users, and you want to receive their feedbacks, you must provide your email address.</p>
			    <input type='text' name='email' id='email' class='inputfield'/>
			</td>
		    </tr>
		    {% endif %}
		    <tr><td>Study Materials:</td>
			<td>
			    <textarea id='materials' class='loadEditor' style='width: 100%'></textarea>
			</td>
		    </tr>
		    <tr><td>Description:</td>
			<td>
			    A short introduction of what this set is for.  This is displayed when other user use the search form.
			    <textarea id='description' class='loadEditor' style='width: 100%'>{{ description }}</textarea>
			</td>
		    </tr>
		    <tr>
			<td>Tags:</td>
			<td>
			    For a large set, it is very difficult to study it all at once.  We recommend that you set up tags (one tag per chapter of a book).  This allows you to study / review one chapter at a time.
			    <p>Interface for adding tag is not presented here.  You can add tags to this set elsewhere.</p>
			</td>
		    </tr>
		    <tr><td><input type='button' value='Submit' id='submit'></td></tr>
		</table>
	    </div>
	</td>
    </tr>
</table>	
		</form>
